package main

func main() {
	//ticker := time.NewTicker(time.Second)

	//counter := 1
	//for _ = range ticker.C {
	//	fmt.Println("ticker...")
	//	counter++
	//	if counter >= 5 {
	//		ticker.Stop()
	//		break
	//	}
	//}

	/*chanInt := make(chan int)

	go func() {
		for _ = range ticker.C {
			select {
			case chanInt <- 1:
			case chanInt <- 2:
			case chanInt <- 3:
			}
		}
	}()

	sum := 0
	for v := range chanInt {
		fmt.Println("收到：", v)
		sum += v
		fmt.Println("sum：", sum)
		if sum >= 10 {
			break
		}
	}
*/
}
